ValidateExpressions

Description

The Validation Expressions section in a screen rule or a transaction, supports the ability to configure "hard" edits or pop up error messages. The Functionality of this business rule is to identify errors, fix and allow overrides.

 

Note:  This business rule is overridden at the Transaction level.

 

ValidateExpressions Element \ Attribute Table

Element/Tag

Definition

Attribute

Element/Attribute Value and Description

<ValidateExpressions>

The opening and closing tag

 

 

   <Expression>

Required and Repeatable Element;
This tag specifies the error messages to be displayed on the screen when a specific Condition is evaluated to be True/ False. Indicates validation error messages including required attributes and values for error conditions.

 

Required Element value;
Expression

Specifies the condition that needs to be evaluated upon trying to process the Transaction. This is useful as it validates the input values to make sure that they are acceptable before they are submitted to the server.

TYPE

Optional Attribute;
ErrorOnTrue/ErrorOnFalse

Tells the math engine to error if the expression is evaluated to True or False.
ErrorOnTrue
- If the Expression is true then displays the error message.
ErrorOnFalse
- If the Expression is false then displays the error message.
Note: 
ErrorOnFalse is a default value if TYPE="ErrorOnTrue" is not specified.

OVERRIDEABLE

 

 

 

 

 

 

 

Optional Attribute;
Yes, No

This attribute is used to indicate whether the error messages can be overridden or not.
Auto
- Defines the ability to automatically override the error
Yes
- When set to "Yes", the error messages will be displayed with a check box in the Error window. Clicking the checkbox will allow the User to override the error.
 

MESSAGE

Required Attribute;
="ErrorMessage"

This attribute is used to specify the error message that should be displayed upon evaluating the condition

 

XML Example

<ValidateExpressions>

<Expression TYPE="ErrorOnTrue" OVERRIDABLE="Yes, Super" MESSAGE="Complex policy change event must process within current modal period." ERRORNUMBER="UOO1" FIX="To process on this date, at least one Premium transaction must be reversed" >DaysDifferenceBetweenPreviousPaidToDateAndEffectiveDate &lt; Zero

</Expression>

</ValidateExpressions>